import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//导入组件
import { Button, Swipe, SwipeItem, Tabbar, TabbarItem, NavBar, Form, Field, Sidebar, SidebarItem } from 'vant';
// import { NavBar } from 'vant';






//注册组件
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);

Vue.config.productionTip = false

new Vue({
        router,//将router挂载到根实例上( 在任何一个组件中都可以通过this这个组件实例获取到路由对象: this.$router )
        store,
        render: h => h(App)
}).$mount('#app')
